import React from 'react'

// 引入组件
import OrderIndex from '@/components/Order/Index'
import OrderInfo from '@/components/Order/Info'

//路由列表 二级路由列表
const list = [
  {
    path: 'index',
    component: OrderIndex,
    auth: true,
  },
  {
    path: 'info',
    component: OrderInfo,
    auth: true,
  },
]

//构建父级路由的组件结构
const Layout = () => <React.Router.Outlet />

//构建顶级路由结构
const RouterList = [
  {
    path: "/order",
    component: Layout,
    children: list
  }
]

export default RouterList
